package pt.isec.a21210392.a21190220.ludotwist;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainMenuActivity extends Activity 
{

    @Override
    protected void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_menu);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) 
    {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main_menu, menu);
        return true;
    }
    @Override
    protected void onResume() 
    {
    	super.onResume();
    	setContentView(R.layout.activity_main_menu);
    }
    
    public void onMainMenuSinglePlayer(View v) 
    {
    	Intent myIntent = new Intent(MainMenuActivity.this, GameActivity.class);
    	MainMenuActivity.this.startActivity(myIntent);
    }    
    public void onMainMenuMultiPlayer(View v) 
    {
    	Intent myIntent = new Intent(MainMenuActivity.this, MultiplayerMenuActivity.class);
    	MainMenuActivity.this.startActivity(myIntent);
    }    
    public void onMainMenuOptions(View v) 
    {
    	Intent myIntent = new Intent(MainMenuActivity.this, OptionsMenuActivity.class);
    	MainMenuActivity.this.startActivity(myIntent);
    }    
    public void onMainMenuExit(View v) 
    {
    	this.finish();
    }
}